// noinspection JSUnusedGlobalSymbols

class SingleEvent {
    private callback?: (arg: IArguments) => void;

    public emit(): void {
        this.callback?.(arguments);
    }

    public on(fn: (arg: IArguments) => void): void {
        this.callback = fn;
    }
}
